App({
  globalData: {
    userInfo: null,
    currentTab: 0,
    books: [
      {
        id: 1,
        title: "Jam Jam English",
        author: "用户1026",
        count: 30,
        category: "分级阅读",
        cover: "/images/book-cover-1.png"
      },
      {
        id: 2,
        title: "轻松英语名著",
        author: "用户1026",
        count: 20,
        category: "桥梁书",
        cover: "/images/book-cover-2.png"
      },
      {
        id: 3,
        title: "Henry and Mudge",
        author: "用户1026",
        count: 28,
        category: "章节书",
        cover: "/images/book-cover-3.png"
      },
      {
        id: 4,
        title: "Oxford Phonics",
        author: "用户1026",
        count: 15,
        category: "分级阅读",
        cover: "/images/book-cover-4.png"
      }
    ],
    oxfordBooks: [
      {
        id: 5,
        title: "牛津树1级",
        author: "用户1026",
        count: 59,
        category: "牛津树系列",
        cover: "/images/oxford-1.png"
      },
      {
        id: 6,
        title: "牛津树2级",
        author: "用户1026",
        count: 47,
        category: "牛津树系列",
        cover: "/images/oxford-2.png"
      },
      {
        id: 7,
        title: "牛津树3级",
        author: "用户1026",
        count: 42,
        category: "牛津树系列",
        cover: "/images/oxford-3.png"
      },
      {
        id: 8,
        title: "牛津树4级",
        author: "用户1026",
        count: 38,
        category: "牛津树系列",
        cover: "/images/oxford-4.png"
      }
    ],
    categories: ["全部", "分级阅读", "桥梁书", "章节书", "其他"],
    currentCategory: "全部"
  },

  onLaunch() {
    // 小程序启动时执行
    console.log('App Launch')
  },

  onShow() {
    // 小程序显示时执行
    console.log('App Show')
  },

  onHide() {
    // 小程序隐藏时执行
    console.log('App Hide')
  }
}) 